package com.lxl.xm.service;

import com.lxl.xm.model.entity.StudentTask;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 86135
* @description 针对表【student_task(学生任务参与表)】的数据库操作Service
* @createDate 2024-03-09 14:14:17
*/
public interface StudentTaskService extends IService<StudentTask> {

    Long countCompletedStudentsByTaskId(Long taskId);

    Boolean studentCompleteTask(Long studentId,Long taskId);

    Boolean isStudentJoinTaskAndCompleted(Long studentId,Long taskId);

}
